export default [{
  path: '/dashboard',
  name: 'dashboard',
  meta: {
    icon: 'dashboard'
  },
  component: () => import('@/views/dashboard')
}, {
  path: '/modules',
  name: 'modules',
  meta: {
    icon: 'modules'
  },
  component: () => import('@/views/modules'),
  redirect: '/modules/charts',
  children: [{
    path: 'charts',
    name: 'charts',
    meta: {
      icon: 'chart'
    },
    component: () => import('@/views/modules/charts')
  }, {
    path: 'table',
    name: 'table',
    meta: {
      icon: 'table'
    },
    component: () => import('@/views/modules/table')
  }]
}, {
  path: '/component',
  name: 'component',
  meta: {
    icon: 'component'
  },
  component: () => import('@/views/component'),
  redirect: '/component/iconfont',
  children: [{
    path: 'iconfont',
    name: 'component-iconfont',
    meta: {
      icon: 'icon'
    },
    component: () => import('@/views/component/iconfont')
  }, {
    path: 'editor',
    name: 'component-editor',
    meta: {
      icon: 'icon'
    },
    component: () => import('@/views/component/editor')
  }, {
    path: 'markdown',
    name: 'component-markdown',
    meta: {
      icon: 'icon'
    },
    component: () => import('@/views/component/markdown')
  }]
}, {
  path: '/map',
  name: 'map',
  meta: {
    icon: 'map'
  },
  component: () => import('@/views/map'),
  redirect: '/map/baidumap',
  children: [{
    path: 'baidumap',
    name: 'map-baidumap',
    meta: {
      icon: 'baidumap'
    },
    component: () => import('@/views/map/baidumap')
  }, {
    path: 'qqmap',
    name: 'map-qqmap',
    meta: {
      icon: 'qqmap'
    },
    component: () => import('@/views/map/qqmap')
  }]
}, {
  path: '/css',
  name: 'css',
  meta: {
    icon: 'css'
  },
  component: () => import('@/views/css')
}, {
  path: '/nodejs',
  name: 'nodejs',
  meta: {
    icon: 'nodejs'
  },
  component: () => import('@/views/nodejs'),
  redirect: '/nodejs/design-pattern',
  children: [{
    path: 'design-pattern',
    name: 'design-pattern',
    meta: {
      icon: 'design-pattern'
    },
    component: () => import('@/views/nodejs/design-pattern')
  }, {
    path: 'blockchain',
    name: 'blockchain',
    meta: {
      icon: 'blockchain'
    },
    component: () => import('@/views/nodejs/blockchain')
  }]
}, {
  path: '/wechat',
  name: 'wechat',
  meta: {
    icon: 'wechat'
  },
  component: () => import('@/views/wechat')
}]
